﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LCL.WinControls
{
    public partial class SendErrInfo : Form
    {
        public SendErrInfo(string errorMessage)
        {
            InitializeComponent();
            txtMessage.Text = errorMessage;
            Logger.Debug(errorMessage);
        }
        private void btnOK_Click(object sender, EventArgs e)
        {
            LEmail.SystemSend(Application.ProductName + Application.ProductVersion, txtMessage.Text);
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            string target = "https://www.cnblogs.com/luomingui";
            System.Diagnostics.Process.Start(target);
        }
        private void btnAbort_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Abort;
            this.Close();
        }
        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
    }
}
